//
//  CCYUser.swift
//  03.微博
//
//  Created by 蔡承毅 on 16/9/30.
//  Copyright © 2016年 IOS. All rights reserved.
//

import UIKit

class CCYUser: NSObject {
    // 微博ID
    var id: Int64 = 0
    
    // 用户昵称
    var screen_name: String?
    
    // 用户头像 中图50x50
    var profile_image_url: String?
    
    // 认证 -1没有认证 0认证 企业认证2，3，5 达人220
    var verified_type: Int = -1
    
    // 微博等级
    var mbrank: Int = 0
    
    init(dict: [String: Any]) {
        super.init()
        
        setValuesForKeys(dict)
    }
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {}
    
    override var description: String{
        get{
            let key = ["id", "screen_name", "profile_image_url", "verified_type", "mbrank"]
            let des = dictionaryWithValues(forKeys: key)
            return "\t\t,用户模型\(des)"
            
            
        }
    }
}
